package com.ruoyi.project.channel.channelOrder.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 通道订单表 channel_order
 *
 * @author ruoyi
 * @date 2019-04-09
 */
public class ChannelOrder extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String orderId;
    /**
     * 平台订单号
     */
    private String ptOrderno;
    /**
     * 下游订单号
     */
    private String childOrderno;
    /**
     * 商户编号
     */
    private Long businessId;
    /**
     * 商户编号
     */
    private String businessName;
    /**
     * 归属通道商
     */
    private Long channelUserId;
    /**
     * 归属通道商
     */
    private Long payerUserId;
    /**
     * 归属支付商
     */
    private String payerUserName;
    /**
     * 归属通道商
     */
    private String channelUserName;
    /**
     * 提交日期
     */
    private Date submitTime;
    /**
     * 成功日期
     */
    private Date successTime;
    /**
     * 交易金额
     */
    private BigDecimal amount;
    /**
     * 平台手续费
     */
    private BigDecimal platformFee;
    /**
     * 代理商手续费
     */
    private BigDecimal agentFee;
    /**
     * 支付商手续费
     */
    private BigDecimal payerFee;
    /**
     * 通道商手续费
     */
    private BigDecimal channelFee;
    /**
     * 商户手续费
     */
    private BigDecimal businessFee;
    /**
     * 交易金额
     */
    private BigDecimal payAmount;
    /**
     * 交易金额
     */
    private BigDecimal orderAmount;

    /**
     * 支付类型
     */
    private String payType;
    /**
     * 支付类型名称
     */
    private String payTypeLabel;
    /**
     * 交易账号
     */
    private String account;
    /**
     * 代理商id
     */
    private Long agentUserId;
    /**
     * 代理商名称
     */
    private String agentUserName;
    /**
     * 提交地址
     */
    private String submitUrl;
    /**
     * 页面返回地址
     */
    private String returnUrl;
    /**
     * 服务器通知地址
     */
    private String serverUrl;
    /**
     * 状态（0未支付 1已支付 2:补单 3:已成功,未返回 4:失效）
     */
    private String orderStatus;
    /**
     * 状态（0正常 1停用）
     */
    private String status;
    /**
     * 付款方用户id
     */
    private String fromAlipayId;
    /**
     * 付款方用户id
     */
    private String fromAlipayName;
    /**
     * 付款方用户id
     */
    private String fromAlipayAccount;
    // md5鉴权使用
    private String sign ;
    // md5鉴权使用
    private String time ;
    private String bankMessageNo;
    private String phoneNo;
    private String cardId;
    private String bankMark;
    private String bankName;
    private String accountName;
    private String addSalesmanScore;
    /**
     * 服务端类型(1. application/json 2. form)
     */
    private String  serverType;
    /**
     * 代理商id
     */
    private Long ddId;
    private Long businessRateId;
    private String payUrl;

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setPtOrderno(String ptOrderno) {
        this.ptOrderno = ptOrderno;
    }

    public String getPtOrderno() {
        return ptOrderno;
    }

    public void setChildOrderno(String childOrderno) {
        this.childOrderno = childOrderno;
    }

    public String getChildOrderno() {
        return childOrderno;
    }

    public void setSubmitTime(Date submitTime) {
        this.submitTime = submitTime;
    }

    public Date getSubmitTime() {
        return submitTime;
    }

    public void setSuccessTime(Date successTime) {
        this.successTime = successTime;
    }

    public Date getSuccessTime() {
        return successTime;
    }

    public void setSubmitUrl(String submitUrl) {
        this.submitUrl = submitUrl;
    }

    public String getSubmitUrl() {
        return submitUrl;
    }

    public void setReturnUrl(String returnUrl) {
        this.returnUrl = returnUrl;
    }

    public String getReturnUrl() {
        return returnUrl;
    }

    public void setServerUrl(String serverUrl) {
        this.serverUrl = serverUrl;
    }

    public String getServerUrl() {
        return serverUrl;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("orderId", getOrderId())
                .append("ptOrderno", getPtOrderno())
                .append("childOrderno", getChildOrderno())
                .append("businessId", getBusinessId())
                .append("channelUserId", getChannelUserId())
                .append("submitTime", getSubmitTime())
                .append("successTime", getSuccessTime())
                .append("submitUrl", getSubmitUrl())
                .append("returnUrl", getReturnUrl())
                .append("serverUrl", getServerUrl())
                .append("orderStatus", getOrderStatus())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("time", getTime())
                .append("updateTime", getUpdateTime())
                .append("payAmount", getPayAmount())
                .append("status", getStatus())
                .append("account", getAccount())
                .append("payType", getPayType())
                .toString();
    }

    public Long getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Long businessId) {
        this.businessId = businessId;
    }

    public Long getChannelUserId() {
        return channelUserId;
    }

    public void setChannelUserId(Long channelUserId) {
        this.channelUserId = channelUserId;
    }

    public String getBusinessName() {
        return businessName;
    }

    public void setBusinessName(String businessName) {
        this.businessName = businessName;
    }

    public String getChannelUserName() {
        return channelUserName;
    }

    public void setChannelUserName(String channelUserName) {
        this.channelUserName = channelUserName;
    }

    public String getFromAlipayId() {
        return fromAlipayId;
    }

    public void setFromAlipayId(String fromAlipayId) {
        this.fromAlipayId = fromAlipayId;
    }

    public String getFromAlipayName() {
        return fromAlipayName;
    }

    public void setFromAlipayName(String fromAlipayName) {
        this.fromAlipayName = fromAlipayName;
    }

    public String getFromAlipayAccount() {
        return fromAlipayAccount;
    }

    public void setFromAlipayAccount(String fromAlipayAccount) {
        this.fromAlipayAccount = fromAlipayAccount;
    }

    public Long getPayerUserId() {
        return payerUserId;
    }

    public void setPayerUserId(Long payerUserId) {
        this.payerUserId = payerUserId;
    }

    public String getPayerUserName() {
        return payerUserName;
    }

    public void setPayerUserName(String payerUserName) {
        this.payerUserName = payerUserName;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getPlatformFee() {
        return platformFee;
    }

    public void setPlatformFee(BigDecimal platformFee) {
        this.platformFee = platformFee;
    }

    public BigDecimal getAgentFee() {
        return agentFee;
    }

    public void setAgentFee(BigDecimal agentFee) {
        this.agentFee = agentFee;
    }

    public BigDecimal getPayerFee() {
        return payerFee;
    }

    public void setPayerFee(BigDecimal payerFee) {
        this.payerFee = payerFee;
    }

    public BigDecimal getChannelFee() {
        return channelFee;
    }

    public void setChannelFee(BigDecimal channelFee) {
        this.channelFee = channelFee;
    }

    public BigDecimal getBusinessFee() {
        return businessFee;
    }

    public void setBusinessFee(BigDecimal businessFee) {
        this.businessFee = businessFee;
    }

    public BigDecimal getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(BigDecimal payAmount) {
        this.payAmount = payAmount;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getPayTypeLabel() {
        return payTypeLabel;
    }

    public void setPayTypeLabel(String payTypeLabel) {
        this.payTypeLabel = payTypeLabel;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getAgentUserName() {
        return agentUserName;
    }

    public void setAgentUserName(String agentUserName) {
        this.agentUserName = agentUserName;
    }

    public Long getAgentUserId() {
        return agentUserId;
    }

    public void setAgentUserId(Long agentUserId) {
        this.agentUserId = agentUserId;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getBankMessageNo() {
        return bankMessageNo;
    }

    public void setBankMessageNo(String bankMessageNo) {
        this.bankMessageNo = bankMessageNo;
    }

    public String getPhoneNo() {
        return phoneNo;
    }

    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getBankMark() {
        return bankMark;
    }

    public void setBankMark(String bankMark) {
        this.bankMark = bankMark;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public String getServerType() {
        return serverType;
    }

    public void setServerType(String serverType) {
        this.serverType = serverType;
    }

    public Long getDdId() {
        return ddId;
    }

    public void setDdId(Long ddId) {
        this.ddId = ddId;
    }

    public String getPayUrl() {
        return payUrl;
    }

    public void setPayUrl(String payUrl) {
        this.payUrl = payUrl;
    }

    public Long getBusinessRateId() {
        return businessRateId;
    }

    public void setBusinessRateId(Long businessRateId) {
        this.businessRateId = businessRateId;
    }

    public BigDecimal getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(BigDecimal orderAmount) {
        this.orderAmount = orderAmount;
    }

    public String getAddSalesmanScore() {
        return addSalesmanScore;
    }

    public void setAddSalesmanScore(String addSalesmanScore) {
        this.addSalesmanScore = addSalesmanScore;
    }
}
